<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>NDS32 Options (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="NDS32 Options (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="NDS32 Options (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Submodel-Options.html" rel="up" title="Submodel Options">
<link href="Nios-II-Options.html" rel="next" title="Nios II Options">
<link href="MSP430-Options.html" rel="prev" title="MSP430 Options">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsection-level-extent" id="NDS32-Options">
<div class="nav-panel">
<p>
Next: <a href="Nios-II-Options.html" accesskey="n" rel="next">Nios II Options</a>, Previous: <a href="MSP430-Options.html" accesskey="p" rel="prev">MSP430 Options</a>, Up: <a href="Submodel-Options.html" accesskey="u" rel="up">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="NDS32-Options-1"><span>3.19.33 NDS32 Options<a class="copiable-link" href="#NDS32-Options-1"> &para;</a></span></h4>
<a class="index-entry-id" id="index-NDS32-Options"></a>

<p>These options are defined for NDS32 implementations:
</p>
<dl class="table">
<dt><a id="index-mbig_002dendian-9"></a><span><code class="code">-mbig-endian</code><a class="copiable-link" href="#index-mbig_002dendian-9"> &para;</a></span></dt>
<dd><p>Generate code in big-endian mode.
</p>
</dd>
<dt><a id="index-mlittle_002dendian-9"></a><span><code class="code">-mlittle-endian</code><a class="copiable-link" href="#index-mlittle_002dendian-9"> &para;</a></span></dt>
<dd><p>Generate code in little-endian mode.
</p>
</dd>
<dt><a id="index-mreduced_002dregs"></a><span><code class="code">-mreduced-regs</code><a class="copiable-link" href="#index-mreduced_002dregs"> &para;</a></span></dt>
<dd><p>Use reduced-set registers for register allocation.
</p>
</dd>
<dt><a id="index-mfull_002dregs"></a><span><code class="code">-mfull-regs</code><a class="copiable-link" href="#index-mfull_002dregs"> &para;</a></span></dt>
<dd><p>Use full-set registers for register allocation.
</p>
</dd>
<dt><a id="index-mcmov"></a><span><code class="code">-mcmov</code><a class="copiable-link" href="#index-mcmov"> &para;</a></span></dt>
<dd><p>Generate conditional move instructions.
</p>
</dd>
<dt><a id="index-mno_002dcmov"></a><span><code class="code">-mno-cmov</code><a class="copiable-link" href="#index-mno_002dcmov"> &para;</a></span></dt>
<dd><p>Do not generate conditional move instructions.
</p>
</dd>
<dt><a id="index-mext_002dperf"></a><span><code class="code">-mext-perf</code><a class="copiable-link" href="#index-mext_002dperf"> &para;</a></span></dt>
<dd><p>Generate performance extension instructions.
</p>
</dd>
<dt><a id="index-mno_002dext_002dperf"></a><span><code class="code">-mno-ext-perf</code><a class="copiable-link" href="#index-mno_002dext_002dperf"> &para;</a></span></dt>
<dd><p>Do not generate performance extension instructions.
</p>
</dd>
<dt><a id="index-mext_002dperf2"></a><span><code class="code">-mext-perf2</code><a class="copiable-link" href="#index-mext_002dperf2"> &para;</a></span></dt>
<dd><p>Generate performance extension 2 instructions.
</p>
</dd>
<dt><a id="index-mno_002dext_002dperf2"></a><span><code class="code">-mno-ext-perf2</code><a class="copiable-link" href="#index-mno_002dext_002dperf2"> &para;</a></span></dt>
<dd><p>Do not generate performance extension 2 instructions.
</p>
</dd>
<dt><a id="index-mext_002dstring"></a><span><code class="code">-mext-string</code><a class="copiable-link" href="#index-mext_002dstring"> &para;</a></span></dt>
<dd><p>Generate string extension instructions.
</p>
</dd>
<dt><a id="index-mno_002dext_002dstring"></a><span><code class="code">-mno-ext-string</code><a class="copiable-link" href="#index-mno_002dext_002dstring"> &para;</a></span></dt>
<dd><p>Do not generate string extension instructions.
</p>
</dd>
<dt><a id="index-mv3push"></a><span><code class="code">-mv3push</code><a class="copiable-link" href="#index-mv3push"> &para;</a></span></dt>
<dd><p>Generate v3 push25/pop25 instructions.
</p>
</dd>
<dt><a id="index-mno_002dv3push"></a><span><code class="code">-mno-v3push</code><a class="copiable-link" href="#index-mno_002dv3push"> &para;</a></span></dt>
<dd><p>Do not generate v3 push25/pop25 instructions.
</p>
</dd>
<dt><a id="index-m16_002dbit-1"></a><span><code class="code">-m16-bit</code><a class="copiable-link" href="#index-m16_002dbit-1"> &para;</a></span></dt>
<dd><p>Generate 16-bit instructions.
</p>
</dd>
<dt><a id="index-mno_002d16_002dbit"></a><span><code class="code">-mno-16-bit</code><a class="copiable-link" href="#index-mno_002d16_002dbit"> &para;</a></span></dt>
<dd><p>Do not generate 16-bit instructions.
</p>
</dd>
<dt><a id="index-misr_002dvector_002dsize"></a><span><code class="code">-misr-vector-size=<var class="var">num</var></code><a class="copiable-link" href="#index-misr_002dvector_002dsize"> &para;</a></span></dt>
<dd><p>Specify the size of each interrupt vector, which must be 4 or 16.
</p>
</dd>
<dt><a id="index-mcache_002dblock_002dsize"></a><span><code class="code">-mcache-block-size=<var class="var">num</var></code><a class="copiable-link" href="#index-mcache_002dblock_002dsize"> &para;</a></span></dt>
<dd><p>Specify the size of each cache block,
which must be a power of 2 between 4 and 512.
</p>
</dd>
<dt><a id="index-march-10"></a><span><code class="code">-march=<var class="var">arch</var></code><a class="copiable-link" href="#index-march-10"> &para;</a></span></dt>
<dd><p>Specify the name of the target architecture.
</p>
</dd>
<dt><a id="index-mcmodel"></a><span><code class="code">-mcmodel=<var class="var">code-model</var></code><a class="copiable-link" href="#index-mcmodel"> &para;</a></span></dt>
<dd><p>Set the code model to one of
</p><dl class="table">
<dt>&lsquo;<samp class="samp">small</samp>&rsquo;</dt>
<dd><p>All the data and read-only data segments must be within 512KB addressing space.
The text segment must be within 16MB addressing space.
</p></dd>
<dt>&lsquo;<samp class="samp">medium</samp>&rsquo;</dt>
<dd><p>The data segment must be within 512KB while the read-only data segment can be
within 4GB addressing space.  The text segment should be still within 16MB
addressing space.
</p></dd>
<dt>&lsquo;<samp class="samp">large</samp>&rsquo;</dt>
<dd><p>All the text and data segments can be within 4GB addressing space.
</p></dd>
</dl>

</dd>
<dt><a id="index-mctor_002ddtor"></a><span><code class="code">-mctor-dtor</code><a class="copiable-link" href="#index-mctor_002ddtor"> &para;</a></span></dt>
<dd><p>Enable constructor/destructor feature.
</p>
</dd>
<dt><a id="index-mrelax-4"></a><span><code class="code">-mrelax</code><a class="copiable-link" href="#index-mrelax-4"> &para;</a></span></dt>
<dd><p>Guide linker to relax instructions.
</p>
</dd>
</dl>

</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="Nios-II-Options.html">Nios II Options</a>, Previous: <a href="MSP430-Options.html">MSP430 Options</a>, Up: <a href="Submodel-Options.html">Machine-Dependent Options</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
